<include file="public:header"/>
<div class="content">
    <div class="search_top box_shadow mt15">
        <div class="search_box">
            <form method="get" action="{:u('search/index')}" onsubmit="return check_search(this);">
                <input type="text" value="{$keywords}" name="keywords" id="keyword" class="fl">
                <input type="submit" value="搜索" id="search_btn" class="white tc fl cursor">
            </form>
        </div>
    </div>

    <div class="search_result">
        <if condition="$items_list eq ''">
            <div class="no_result break_word mt15">很抱歉，没有找到与“<span class="keyword">{$keywords}</span>”相关的内容</div>
            <else/>
            <div class="result_header clearfix">
                <div class="fl">找到{$items_total}条与“<span class="keyword">{$keywords}</span>”相关的宝贝</div>
                <div class="fr">
                    <a href="{:u('search/index',array('keywords'=>$keywords,'sortby'=>'likes'))}" <if condition="$sortby eq 'likes'">class="red"</if>>按喜欢排序</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="{:u('search/index',array('keywords'=>$keywords,'sortby'=>'time'))}" <if condition="$sortby eq 'time'">class="red"</if>>按时间排序</a>
                </div>
            </div>

            <div class="item_list infinite_scroll">        
				<include file="public:goods_list"/>
            </div>
            <if condition="$show_sp eq 1"><div id="more" class="center"><a href="{:u('search/index',array('keywords'=>$keywords,'sp'=>2,'p'=>$p))}" hidefocus="true"></a></div></if>
            <if condition="$page neq ''"><div id="page" class="page mt20" style="display: none;"><div class="page_num">{$page}</div></div></if>
        </if>
    </div>

</div>

<include file="public:footer"/>
